package com.zlt.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.zlt.annotation.Column;
import com.zlt.annotation.Id;
import com.zlt.annotation.Table;

import javax.xml.crypto.Data;

@Table(name = "kind")
public class Kind {

    @Id(name = "kind_id")
    private int kid;// 菜品种类表主键id

    @Column(name = "kind_desc")
    @JSONField
    private String desc;// 菜品种类描述

    @Column(name = "createtime")
    @JSONField
    private Data createTime;// 菜品种类创建时间

    @Column(name = "updatetime")
    @JSONField
    private Data updateTime;// 菜单种类相应修改时间

    @Column
    @JSONField
    private int state;// 菜单种类状态 0 有存货 1 已售罄

    @Column
    @JSONField
    private int count;// 此种类菜品的数量

    public Kind() {
    }

    public Kind(int kid, String desc, Data createTime, Data updateTime, int state, int count) {
        this.kid = kid;
        this.desc = desc;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.state = state;
        this.count = count;
    }

    public int getKid() {
        return kid;
    }

    public void setKid(int kid) {
        this.kid = kid;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public Data getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Data createTime) {
        this.createTime = createTime;
    }

    public Data getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Data updateTime) {
        this.updateTime = updateTime;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    @Override
    public String toString() {
        return "Kind{" +
                "kid=" + kid +
                ", desc='" + desc + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", state=" + state +
                ", count=" + count +
                '}';
    }
}
